package com.jmb.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * 
 * @TableName t_module
 */
@TableName(value ="t_module")
@Data
public class Module extends BaseEntity{


    /**
     * 项目id
     */

    @Schema(description = "项目id")
    @NotNull(message = "项目id不能为空")
    @TableField(value = "project_id")
    private Integer projectId;

    /**
     * 模块名称
     */
    @Schema(description = "模块名称")
    @NotBlank(message = "模块名称不能为空")
    @Size(max = 10, message = "模块名称长度必须小于等于10")
    @TableField(value = "name")
    private String name;

    /**
     * 模块描述
     */
    @Schema(description = "模块描述")
    @Size(max = 100, message = "模块描述长度必须小于等于100")
    @TableField(value = "description")
    private String description;

}